<?php


namespace app\common\model\mysql;


class Order extends BaseModel
{
    public function getDetail($userId, $id) {
        $where = [
            ['user_id', '=', $userId],
            ['order_id', '=', $id],
        ];
        return $this->where($where)->find();
    }
}